package com.common.test.dao;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.test.AbstractTransactionalDataSourceSpringContextTests;

import com.common.context.ApplicationContextUtil;

public abstract class BaseDaoTestCase extends AbstractTransactionalDataSourceSpringContextTests {

    protected BaseDaoTestCase() {
//        setDefaultRollback(false);
    }

    protected String[] getConfigLocations() {
        return new String[]{"config/ApplicationContext-dao.xml"};
    }
    
//    protected ConfigurableApplicationContext createApplicationContext(String[] strings) {
//        ConfigurableApplicationContext ctx = super.createApplicationContext(strings);
//        ApplicationContextUtil.setApplicationContext(ctx);
//        return ctx;
//    }
}